@extends('prelist')
@section('left')
@parent
@endsection
@section('right')
    
<div class="crumb-wrap">
    <div class="crumb-list"><i class="icon-font"></i><a href="/prelist">店铺操作</a><span class="crumb-step">&gt;</span><span class="crumb-name">店铺管理</span></div>


</div>

<div class="result-wrap">
    <form name="myform" id="myform" method="post">
        <div class="result-content">
            <table class="result-tab" width="100%">
                <tr>
                    <th>编号</th>
                    <th>店铺名称</th>
                    <th>店铺星级</th>
                    <th>店铺状态</th>
                    <th>起送价格(元)</th>
                    <th>操作</th>
                </tr>
                @foreach($stores as $s)
                <tr>
                    <td>{{$s->sid}}</td>
                    <td>{{$s->sname}}</td>
                    <td>{{$s->lev}}</td>
                    @if($s->status ==1)
                        <td>正常营业</td>
                    @elseif($s->status ==0)
                        <td>暂停营业</td>
                    @endif
                    <td>{{$s->qsjg}}</td>
                    <td>
                        <a class="link-update" href="{{url('editshop',[$s->sid])}}">修改</a>
                        <a class="link-del" href="{{url('delshop',[$s->sid])}}">删除</a>
                        <a class="link-add" href="{{url('addshop')}}">添加</a>
                    </td>
                </tr>
                @endforeach

            </table>

            <div class="list-page">
          {!!$stores->render()!!}
            </div>
        </div>
    </form>
</div>
@endsection
